# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-canonicaljson
pkgver=1.6.2
pkgrel=0
pkgdesc="Canonical JSON"
url="https://github.com/matrix-org/python-canonicaljson"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-simplejson py3-frozendict"
makedepends="py3-setuptools"
checkdepends="py3-nose"
source="$pkgname-$pkgver.tar.gz::https://github.com/matrix-org/python-canonicaljson/archive/v$pkgver.tar.gz"
builddir="$srcdir/python-canonicaljson-$pkgver"

build() {
	python3 setup.py build
}

check() {
	nosetests
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
5dfcf76e80814e65b897e216e18cbe69b3f44e7676fe433cefdcfa15dc18a004dc7586c16bf95b7457cb8e9268dedf2e7b1b92247b7c65afef30888b1c89bde5  py3-canonicaljson-1.6.2.tar.gz
"
